package com.example.messagequeue;

//import com.example.messagequeue.mqserver.BrokerServer;
import com.example.messagequeue.mqserver.BrokeServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;

@SpringBootApplication
public class MessagequeueApplication {
    public static ConfigurableApplicationContext context;

    public static void main(String[] args) throws IOException {
        context = SpringApplication.run(MessagequeueApplication.class, args);

        BrokeServer brokerServer = new BrokeServer(9090);//
        brokerServer.start();
    }

}
